package com.hgm.study.model.serice

import com.hgm.study.model.Network
import com.hgm.study.model.entity.ArticleResponse
import com.hgm.study.model.entity.UserInfoEntity
import com.hgm.study.model.entity.UserInfoResponse
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

/**
 * @author    HGM
 * @version   1.0
 */
interface UserService {

      companion object {
            fun instance(): UserService {
                  return Network.createService(UserService::class.java)
            }
      }

      @FormUrlEncoded
      @POST("user/signIn")
      suspend fun signIn(
            @Field("userName") userName: String,
            @Field("password") password: String
      ): UserInfoResponse
}